﻿using System;

namespace WpfApp1.Acme.ApplicationClass {
    /// <summary>
    /// Bean的定义
    /// </summary>
    internal class BeanDefinition {
        /** 对象的类型 */
        private Type beanType;
        /** Bean类型可单例可原型 */
        private ScopeType scope;
        /** 标记是否为懒加载 */
        private bool isLazy;
        public Type BeanType { get { return beanType; } set { beanType = value; } }
        public ScopeType Scope { get { return scope; } set { scope = value; } }
        public bool IsLazy { get { return isLazy; } set { isLazy = value; } }
    }

    /// <summary>
    /// Bean的类型
    /// </summary>
    public enum ScopeType {
        /** 单例 */
        singleton,
        /** 原型 */
        prototype
    }
}
